/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-07-12
 * Time: 10:43
 */
public class Test {
    public static void main(String[] args) {
        Integer a = 127;
        Integer b = 127;

        Integer c = 128;
        Integer d = 128;
        System.out.println(a == b);//true
        System.out.println(c == d);//false
    }

    public static void main1(String[] args) {
        int a = 10;
        Integer i = Integer.valueOf(a);//显示装箱
        Integer i3 = 10;//自动装箱

        char ch = 'c';
        Character ch1 = Character.valueOf(ch);
        Character ch2 = ch;

        Integer b = 20;
        int c = b.intValue();//显示拆箱
        double d = b.doubleValue();
        float e = b;//自动拆箱
    }
}
